<%-- 
    Document   : department
    Created on : Jul 3, 2012, 1:26:16 PM
    Author     : VANANH
--%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
<%@taglib prefix="rich" uri="http://richfaces.org/rich" %>
<%@taglib prefix="a4j" uri="http://richfaces.org/a4j" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
         
        <!-- -->
        <link rel="stylesheet" type="text/css" href="../css/popup.css"/>  
        <script type="text/javascript" language="javascript" src="../scripts/jQuery/kapi.js"></script>   
         
        <title>JSP Page</title>
    </head>
    <body>
        <f:view>
             <f:loadBundle basename="#{environmentSession.localizationSource}" var="locale"/>
            <a4j:form>

                <div class="action">
                    <a href="editdivision.jsp?action=addN850&table=setting&height=236px&width=405px" class="fancybox add_new" id="fancybox">
                        <img src="../images/add_tab.png" alt="add" title="add" /><label> <h:outputText value="Bộ phận"/></label>
                    </a>
                </div> 
                <a4j:repeat value="#{groupController.listN850}" var="item"> 
                    <div class="contact">

                        <div class="contact-content">
                            <div class="content-personal">
                                <div class="items">
                                    <label>&nbsp</label>
                                    <span><h:outputText value="#{item.nv852}"/></span> 

                                </div>

                                <div class="items-action">
                                    <h:outputLink  value="pushscreen.jsp?pn850=#{item.pn850}&action=group&table=setting&height=300px&width=500px" styleClass="fancybox" id="group">
                                        <img src="../images/intro.png" alt="Tổ/Nhóm" title="group"/>
                                    </h:outputLink>
                                    <h:outputLink  value="incgroup.jsp?pn850=#{item.pn850}&action=editN850&table=setting&height=236px&width=405px" styleClass="fancybox" id="edit">
                                        <img src="../images/edit.png" alt="edit" title="edit"/>
                                    </h:outputLink>
                                    <h:outputLink  value="delete.jsp?id=#{item.pn850}&flag=N850&height=150px&width=300px" styleClass="fancybox card_delete" >
                                        <img src="../images/delete_1.png" alt="delete" title="delete" />                                               
                                    </h:outputLink>
                                </div>
                            </div>
                        </div>

                    </div>
                </a4j:repeat>
            </a4j:form>
        </f:view>
    </body>
</html>
<script type="text/javascript">
$j(document).ready(function(){
    yhight = ($j('.popup').height()-90)+"px" ;
    $j('.main_content').css('height',yhight );
    $j('.popup-content').css('height',yhight );
});
</script>